<link rel="stylesheet" href="__HOME__/css/sech_weibo.css"/>
<!--==========内容主体==========-->
<div style='height:60px;opcity:10'></div>
    <div class="main">
    <!--=====左侧=====-->
    {include file="public/left"/}

    <!--=====右侧=====-->
    <div id='right'>
        <p id='sech-logo'></p>
        <div id='sech'>
            <div>
                <form action="{:url('home/search/sech_weibo')}" method='get' id="search-data">
                    <input type="text" name='keyword' id='sech-cons' value="{$keyword}"/>
                    <input type="submit" value='搜&nbsp;索' id='sech-sub'/>
                </form>
            </div>
            <ul>
                <li><span class='sech-type' url="{:url('home/search/sech_user')}">找人</span></li>
                <li><span class='cur sech-type' url="{:url('home/search/sech_weibo')}">微博</span></li>
            </ul>
        </div>

        <div id='content'>
            <div class='view_line'>
                <strong>微博</strong>
            </div>
            {if condition="!$data['data']"}
            没有找到与&nbsp;<span style="font-weight:bold;color:#f00">{$keyword}</span>&nbsp;相关的微博
            {/if}

            {if condition="$data['data']"}
            <!--====================普通微博样式====================-->
            {foreach name="$data['data']" item="v"}
            {if condition="!$v['isturn']"}
            <div class="weibo">
                <!--头像-->
                <div class="face">
                    <a href="/uid/{$v['uid']}">
                        {if condition="$v['face50']"}
                        <img src="{$v['face50']}" width='50' height='50'/>
                        {else/}
                        <img src="__HOME__/images/noface.gif" width='50' height='50'/>
                        {/if}
                    </a>
                </div>
                <div class="wb_cons">
                    <dl>
                        <!--用户名-->
                        <dt class='author'>
                            <a href="/uid/{$v['uid']}">{$v['username']}</a>
                        </dt>
                        <!--发布内容-->
                        <dd class='content'>
                            <p>{:replace_weibo($v['content'])}</p>
                        </dd>
                        {if condition="$v['img']"}
                        <!--微博图片-->
                        <dd>
                            <div class='wb_img'>
                                <!--小图-->
                                <img src="{$v['mini']}" class='mini_img '/>
                                <div class="img_tool hidden">
                                    <ul>
                                        <li>
                                            <i class='icon icon-packup'></i>
                                            <span class='packup'>&nbsp;收起</span>
                                        </li>
                                        <li>|</li>
                                        <li>
                                            <i class='icon icon-bigpic'></i>
                                            <a href="{$v['max']}" target='_blank'>&nbsp;查看大图</a>
                                        </li>
                                    </ul>
                                    <!--中图-->
                                    <div class="img_info"><img src="{$v['medium']}"/></div>
                                </div>
                            </div>
                        </dd>
                        {/if}
                        </if>
                    </dl>
                    <!--操作-->
                    <div class="wb_tool">
                        <!--发布时间-->
                        <span class="send_time">{:time_format($v['time'])}</span>
                        <ul>
                            <li class="praise-wrap">
                                <i class="ui-icon icon-praise"></i>
                                <span class="praise" wid="">赞</span>
                                <div class="praise-up hidden"></div>
                            </li>
                            <li style="color:#DDEDF0;">|</li>
                            <li>
                                <i class="ui-icon icon-forward"></i>
                                <span class='turn' wid="{$v['wid']}" valign="top">转发({$v['turn']})</span>
                            </li>
                            <li style="color:#DDEDF0;">|</li>
                            <li class="keep-wrap">
                                <i class="ui-icon icon-feed-collect"></i>
                                <span class='keep' wid="{$v['wid']}" url="{:url('home/index/keep')}">收藏({$v['keep']})</span>
                                <div class="cp-keep-up hidden"></div>
                            </li>
                            <li style="color:#DDEDF0;">|</li>
                            <li>
                                <i class="ui-icon icon-comments"></i>
                                <span class='comment' wid="{$v['wid']}" url="{:url('home/comment/get_comment')}">评论({$v['comment']})</span>
                            </li>
                        </ul>
                    </div>
                    <!--=====回复框=====-->
                    <div class='comment_load hidden'>
                        <img src="__HOME__/images/loading.gif">评论加载中，请稍候...
                    </div>
                    <div class='comment_list hidden'>
                        <textarea name="" sign='comment'></textarea>
                        <ul>
                            <li class='phiz fleft' sign='comment'></li>
                            <li class='comment_turn fleft'>
                                <label>
                                    <input type="checkbox" name='' value="1"/>同时转发到我的微博
                                </label>
                            </li>
                            <li class='comment_btn fright' wid="{$v['wid']}" uid="{$v['uid']}" url="{:url('home/comment/send_coomment')}">评论</li>
                        </ul>
                    </div>
                    <!--=====回复框结束=====-->
                </div>
            </div>
            {else/}
            <!--====================转发样式====================-->
            <div class="weibo">
                <!--头像-->
                <div class="face">
                    <a href="/uid/{$v['uid']}">
                        {if condition="$v['face50']"}
                        <img src="{$v['face50']}" width='50' height='50'/>
                        {else/}
                        <img src="__HOME__/images/noface.gif" width='50' height='50'/>
                        {/if}
                    </a>
                </div>
                <div class="wb_cons">
                    <dl>
                        <!--用户名-->
                        <dt class='author'>
                            <a href="/uid/{$v['uid']}">{$v['username']}</a>
                        </dt>
                        <!--发布内容-->
                        <dd class='content'>
                            <p>{:replace_weibo($v['content'])}</p>
                        </dd>
                        <!--转发的微博内容-->
                        <dd>
                            <div class="wb_turn">
                                <dl>
                                    <!--原作者-->
                        <dt class='turn_name'>
                            <a href="/uid/{$v['isturn']['uid']}">@{$v['isturn']['uname']}</a>
                        </dt>
                        <!--原微博内容-->
                        <dd class='turn_cons'>
                            <p>{:replace_weibo($v['isturn']['content'])}</p>
                        </dd>

                        <!--原微博图片-->
                        {if condition="$v['img']"}
                        <dd>
                            <div class="turn_img">
                                <!--小图-->
                                <img src="{$v['isturn']['mini']}" class='turn_mini_img'/>
                                <div class="turn_img_tool hidden">
                                    <ul>
                                        <li>
                                            <i class='icon icon-packup'></i>
                                            <span class='packup'>&nbsp;收起</span></li>
                                        <li>|</li>
                                        <li>
                                            <i class='icon icon-bigpic'></i>
                                            <a href="{$v['isturn']['max']}" target='_blank'>&nbsp;查看大图</a>
                                        </li>
                                    </ul>
                                    <!--中图-->
                                    <div class="turn_img_info">
                                        <img src="{$v['isturn']['medium']}"/>
                                    </div>
                                </div>
                            </div>
                        </dd>
                        {/if}
                    </dl>
                    <!--转发微博操作-->
                    <div class="turn_tool">
                        <span class='send_time'>{:time_format($v['isturn']['time'])}</span>
                        <ul>
                            <li>
                                <i class="ui-icon icon-forward"></i>
                                <span style="color: #2B96E1;">转发({$v['isturn']['turn']})</span>
                            </li>
                            <li style="color:#DDEDF0;">|</li>
                            <li>
                                <i class="ui-icon icon-comments"></i>
                                <span style="color: #2B96E1;">评论({$v['isturn']['comment']})</span>
                            </li>
                        </ul>
                    </div>
                </div>
                </dd>
                </dl>
                <!--操作-->
                <div class="wb_tool">
                    <!--发布时间-->
                    <span class="send_time">{:time_format($v['time'])}</span>
                    <ul>
                        <li class="praise-wrap">
                            <i class="ui-icon icon-praise"></i>
                            <span class="praise" wid="">赞</span>
                            <div class="praise-up hidden"></div>
                        </li>
                        <li style="color:#DDEDF0;">|</li>
                        <li>
                            <i class="ui-icon icon-forward"></i>
                            <span class='turn' wid="{$v['wid']}" tid="{$v['isturn']['id']}">转发({$v['turn']})</span>
                        </li>
                        <li style="color:#DDEDF0;">|</li>
                        <li class="keep-wrap">
                            <i class="ui-icon icon-feed-collect"></i>
                            <span class='keep' wid="{$v['wid']}" url="{:url('home/index/keep')}">收藏({$v['keep']})</span>
                            <div class="cp-keep-up hidden"></div>
                        </li>
                        <li style="color:#DDEDF0;">|</li>
                        <li>
                            <i class="ui-icon icon-comments"></i>
                            <span class='comment' wid="{$v['wid']}" url="{:url('home/comment/get_comment')}">评论({$v['comment']})</span>
                        </li>
                    </ul>
                </div>
                <!--回复框-->
                <div class='comment_load hidden'>
                    <img src="__HOME__/images/loading.gif">评论加载中，请稍候...
                </div>
                <div class='comment_list hidden'>
                    <textarea name="" sign='comment'></textarea>
                    <ul>
                        <li class='phiz fleft' sign='comment'></li>
                        <li class='comment_turn fleft'>
                            <label>
                                <input type="checkbox" name='' value="1"/>同时转发到我的微博
                            </label>
                        </li>
                        <li class='comment_btn fright' wid="{$v['wid']}" uid="{$v['uid']}" url="{:url('home/comment/send_coomment')}">评论</li>
                    </ul>
                </div>
                <!--回复框结束-->
            </div>
        </div>
        {/if}
        <!--====================转发样式结束====================-->
        {/foreach}
        {/if}
        <!--分页区域 START-->
        <div id='page'>{$data['page']}</div>
        <!--分页区域 END-->
        </div>
    </div>
<!--==========内容主体结束==========-->